package com.example.springbootwl08.product.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author Gxl
 * @since 2022-11-09
 */
@Getter
@Setter
  @TableName("product")
@ToString
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

      /**
     * 产品id
     */
        @TableId(value = "product_id", type = IdType.AUTO)
      private Integer productId;

      /**
     * 产品名
     */
      @TableField("product_name")
    private String productName;

      /**
     * 产品价格
     */
      @TableField("price")
    private BigDecimal price;

      /**
     * 产品库存
     */
      @TableField("stock")
    private Integer stock;

      /**
     * 产品介绍
     */
      @TableField("introduction")
    private String introduction;


}
